const http = require('http')
let application = http.createServer()

application.get('/', (req, res) => {
    res.send('欢迎来到首页')
    // get参数
    console.log(req.query);
})

application.post('/add', (req, res) => {
    res.send('欢迎来到添加页')
    // post参数
    console.log(req.body);
})
